//package org.nepu.scr;
//
//import cn.hutool.core.bean.BeanUtil;
//import cn.hutool.core.bean.copier.CopyOptions;
//import cn.hutool.core.lang.Validator;
//import cn.hutool.json.JSONUtil;
//import lombok.AllArgsConstructor;
//import lombok.extern.slf4j.Slf4j;
//import org.lboot.core.exception.BusinessException;
//import org.nepu.sc.reflect.GenericInitializer;
//import org.nepu.sc.task.SafeTask;
//import org.nepu.sc.task.SafeTaskService;
//import org.nepu.scr.关键性能指标.A4KeyParams;
//import org.nepu.scr.关键性能指标.井控系统直观检查.A44WellControlParams;
//import org.nepu.scr.关键性能指标.井控系统直观检查.BOP吊.A441BOPParams;
//import org.nepu.scr.关键性能指标.井控系统直观检查.井控设备.A443WellControlParams;
//import org.nepu.scr.关键性能指标.井控系统直观检查.防喷器远程控制系统.A442BopParams;
//import org.nepu.scr.关键性能指标.动力电气系统直观检查.A45PowerParams;
//import org.nepu.scr.关键性能指标.动力电气系统直观检查.动力及辅助设备.A451PowerParams;
//import org.nepu.scr.关键性能指标.动力电气系统直观检查.应急发电机组.A452EmergenceParams;
//import org.nepu.scr.关键性能指标.循环系统直观检查.A43CirculationParams;
//import org.nepu.scr.关键性能指标.提升系统直观检查.A41UpdateParams;
//import org.nepu.scr.关键性能指标.提升系统直观检查.井架.A411WellFrameParams;
//import org.nepu.scr.关键性能指标.提升系统直观检查.游车大钩.A412TravellingParams;
//import org.nepu.scr.关键性能指标.提升系统直观检查.钻井绞车.A413DrillingParams;
//import org.nepu.scr.关键性能指标.旋转系统直观检查.A42RotateParams;
//import org.nepu.scr.关键性能指标.旋转系统直观检查.转盘.A421TurnParams;
//import org.nepu.scr.关键性能指标.旋转系统直观检查.顶驱.A422TopParams;
//import org.nepu.scr.实际与设计差异.A2RealityParams;
//import org.nepu.scr.实际与设计差异.应力测试.A22TestParams;
//import org.nepu.scr.实际与设计差异.无损探伤.A21NonDestructiveParams;
//import org.nepu.scr.实际与设计差异.联合调试.A23UnionParams;
//import org.nepu.scr.操作可靠性.A1OperationParams;
//import org.nepu.scr.操作可靠性.功能试验.A11FunctionalTestParams;
//import org.nepu.scr.操作可靠性.功能试验.井控系统功能试验.A113WellControlSystemParams;
//import org.nepu.scr.操作可靠性.功能试验.仪表通讯系统功能试验.A115InstrumentSystemParams;
//import org.nepu.scr.操作可靠性.功能试验.动力及电气系统功能试验.A114PowerSystemParams;
//import org.nepu.scr.操作可靠性.功能试验.安全系统功能试验.A116SafeSystemParams;
//import org.nepu.scr.操作可靠性.功能试验.循环系统试验.A112CirculationSystemParams;
//import org.nepu.scr.操作可靠性.功能试验.提升旋转系统.A111UpdateSystemParams;
//import org.nepu.scr.本质安全.A3NatureParams;
//import org.nepu.scr.本质安全.作业前检查报告.A32PreWorkParams;
//import org.nepu.scr.本质安全.钻修机年检报告.A31DrillingParams;
//import org.nepu.scr.设备设施资料.A5DeviceParams;
//import org.nepu.scr.设备设施资料.井控设备证书.A53WellParams;
//import org.nepu.scr.设备设施资料.动力及辅助设备证书.A54PowerParams;
//import org.nepu.scr.设备设施资料.消防救生设备证书.A55FireParams;
//import org.nepu.scr.设备设施资料.钻井液净化设备及压力管线证书.A52DrillingFluidParams;
//import org.nepu.scr.设备设施资料.钻井装置基本资料.A56DrillingDataParams;
//import org.nepu.scr.设备设施资料.钻井设备证书.A51DrillingDeviceParams;
//import org.springframework.http.HttpStatus;
//import org.springframework.stereotype.Service;
//
//import java.util.List;
//import java.util.Map;
//
//@Slf4j
//@Service
//@AllArgsConstructor
//public class ScrCtl {
//    SafeTaskService taskService;
//    // 通用执行方法
//    public Object execute(String taskId, String rateProcess, Map<String, Object> params){
//        if (Validator.isEmpty(taskId)){
//            throw new BusinessException(HttpStatus.BAD_REQUEST,"任务ID不可为空");
//        }
//        if (Validator.isEmpty(rateProcess)){
//            throw new BusinessException(HttpStatus.BAD_REQUEST,"评价环节不可为空");
//        }
////        // 二级指标
////        if (rateProcess.equals("默认评级")){
////            return DefaultRate(taskId, rateProcess, params);
////        }
////        if (rateProcess.equals("设备设施档案资料评级")){
////            //
////        }
////        // 三级指标
////        if (rateProcess.equals("直观检查")){
////            return VisualInspection(taskId, rateProcess, params);
////        }
////        if (rateProcess.equals("功能试验")){
////            return FunctionalTest(taskId, rateProcess, params);
////        }
//        return null;
//    }
//
////    SafeTask queryTask(List<SafeTask> tasks, String rateProcess){
////        for (SafeTask task:tasks){
////            if (task.getRateProcess().equals(rateProcess)){
////                return task;
////            }
////        }
////        return null;
////    }
//    /**
//     * 默认评级 层级 2
//     * @return
//     */
////    public DefaultRateResult DefaultRate(String taskId, String rateProcess, Map<String, Object> params){
////        // 默认评级依赖于 以下四个
////        List<ScrTask> tasks = taskService.getByTaskId(taskId);
////        //直观检查
////        ScrTask task1 = queryTask(tasks, "直观检查");
////        if (Validator.isEmpty(task1)){
////            throw new BusinessException(HttpStatus.NOT_FOUND,"缺少直观检查结果，请先执行直观检查");
////        }
////        // 结果转化为 class , 其余自己补充类似逻辑
////        VisualInspectionResult visualInspectionResult = BeanUtil.toBean(task1.getRateResult(), VisualInspectionResult.class);
////        //功能试验
////        ScrTask task2 = queryTask(tasks, "功能试验");
////        if (Validator.isEmpty(task2)){
////            throw new BusinessException(HttpStatus.NOT_FOUND,"缺少功能试验结果，请先执行功能试验");
////        }
////        //承压试验
////        ScrTask task3 = queryTask(tasks, "承压试验");
////        if (Validator.isEmpty(task3)){
////            throw new BusinessException(HttpStatus.NOT_FOUND,"缺少承压试验结果，请先执行承压试验");
////        }
////        //动负荷试验
////        ScrTask task4 = queryTask(tasks, "动负荷试验");
////        if (Validator.isEmpty(task4)){
////            throw new BusinessException(HttpStatus.NOT_FOUND,"缺少动负荷试验结果，请先执行动负荷试验");
////        }
////        DefaultRateResult result = new DefaultRateResult();
////        // 执行默认检查逻辑生成结果
////
////        // 更新结果
////        taskService.deleteByTaskIdAndRateProcess(taskId, rateProcess);
////        String rateResult = JSONUtil.toJsonStr(result);
////        ScrTask task = new ScrTask();
////        task.setTaskId(taskId);
////        task.setRateProcess(rateProcess);
////        task.setRateResult(rateResult);
////        taskService.saveOne(task);
////        // 返回结果
////        return result;
////    }
////
////    /**
////     * 直观检查 层级 3
////     * @return
////     */
////    public VisualInspectionResult VisualInspection(String taskId, String rateProcess, Map<String, Object> params){
////        VisualInspectionParams visualInspectionParams = BeanUtil.toBean(params, VisualInspectionParams.class);
////        VisualInspectionResult result = new VisualInspectionResult();
////        // 执行算法计算
////        // @TODO
////        // 算法执行成功，写入/更新对应的结果
////        taskService.deleteByTaskIdAndRateProcess(taskId, rateProcess);
////        String rateResult = JSONUtil.toJsonStr(result);
////        ScrTask task = new ScrTask();
////        task.setTaskId(taskId);
////        task.setRateProcess(rateProcess);
////        task.setRateResult(rateResult);
////        taskService.saveOne(task);
////        // 返回结果
////        return result;
////    }
////
////    /**
////     * 功能试验 层级 3
////     * @param taskId
////     * @param rateProcess
////     * @param params
////     * @return
////     */
////    public FunctionalTestResult FunctionalTest(String taskId, String rateProcess, Map<String, Object> params){
////        FunctionalTestParams functionalTestParams = BeanUtil.toBean(params, FunctionalTestParams.class);
////        FunctionalTestResult result = new FunctionalTestResult();
////        // 执行算法计算
////        // @TODO
////        // 算法执行成功，写入/更新对应的结果
////        taskService.deleteByTaskIdAndRateProcess(taskId, rateProcess);
////        String rateResult = JSONUtil.toJsonStr(result);
////        ScrTask task = new ScrTask();
////        task.setTaskId(taskId);
////        task.setRateProcess(rateProcess);
////        task.setRateResult(rateResult);
////        taskService.saveOne(task);
////        // 返回结果
////        return result;
////    }
//    public SafeTask updateParams(SafeTask task, String rateProcess, String jsonStr){
//        // 提取 1 级参数
//        ComplianceParams aParams = new ComplianceParams().jsonBuild(task.getSrrJson());
//
//        //a1
//        if (rateProcess.startsWith("a1")){
//            // 提取2级参数
//            A1OperationParams a1Params = GenericInitializer.getOrCreate(aParams.getA1(), A1OperationParams.class);
//            if (rateProcess.startsWith("a11")){
//                // 提取3级参数
//                A11FunctionalTestParams a11Params = GenericInitializer.getOrCreate(a1Params.getA11(), A11FunctionalTestParams.class);
//
//                if (rateProcess.equals("a111")){
//                    //提取4级参数
//                    A111UpdateSystemParams a111Params = GenericInitializer.getOrCreate(a11Params.getA111(), A111UpdateSystemParams.class);
//                    //转换 四级 参数
//                    A111UpdateSystemParams jsonObj = JSONUtil.toBean(jsonStr,A111UpdateSystemParams.class);
//                    BeanUtil.copyProperties(jsonObj,a111Params, CopyOptions.create().setIgnoreError(true).setIgnoreNullValue(true));
//                    a11Params.setA111(a111Params);
//                }
//                if (rateProcess.equals("a112")){
//                    //提取4级参数
//                    A112CirculationSystemParams a112Params = GenericInitializer.getOrCreate(a11Params.getA112(), A112CirculationSystemParams.class);
//                    //转换 四级 参数
//                    A112CirculationSystemParams jsonObj = JSONUtil.toBean(jsonStr,A112CirculationSystemParams.class);
//                    BeanUtil.copyProperties(jsonObj,a112Params, CopyOptions.create().setIgnoreError(true).setIgnoreNullValue(true));
//                    a11Params.setA112(a112Params);
//                }
//                if (rateProcess.equals("a113")){
//                    //提取4级参数
//                    A113WellControlSystemParams a113Params = GenericInitializer.getOrCreate(a11Params.getA113(), A113WellControlSystemParams.class);
//                    //转换 四级 参数
//                    A113WellControlSystemParams jsonObj = JSONUtil.toBean(jsonStr,A113WellControlSystemParams.class);
//                    BeanUtil.copyProperties(jsonObj,a113Params, CopyOptions.create().setIgnoreError(true).setIgnoreNullValue(true));
//                    a11Params.setA113(a113Params);
//                }
//                if (rateProcess.equals("a114")){
//                    //提取4级参数
//                    A114PowerSystemParams a114Params = GenericInitializer.getOrCreate(a11Params.getA114(), A114PowerSystemParams.class);
//                    //转换 四级 参数
//                    A114PowerSystemParams jsonObj = JSONUtil.toBean(jsonStr,A114PowerSystemParams.class);
//                    BeanUtil.copyProperties(jsonObj,a114Params, CopyOptions.create().setIgnoreError(true).setIgnoreNullValue(true));
//                    a11Params.setA114(a114Params);
//                }
//                if (rateProcess.equals("a115")){
//                    //提取4级参数
//                    A115InstrumentSystemParams a115Params = GenericInitializer.getOrCreate(a11Params.getA115(), A115InstrumentSystemParams.class);
//                    //转换 四级 参数
//                    A115InstrumentSystemParams jsonObj = JSONUtil.toBean(jsonStr,A115InstrumentSystemParams.class);
//                    BeanUtil.copyProperties(jsonObj,a115Params, CopyOptions.create().setIgnoreError(true).setIgnoreNullValue(true));
//                    a11Params.setA115(a115Params);
//                }
//                if (rateProcess.equals("a116")){
//                    //提取4级参数
//                    A116SafeSystemParams a116Params = GenericInitializer.getOrCreate(a11Params.getA116(), A116SafeSystemParams.class);
//                    //转换 四级 参数
//                    A116SafeSystemParams jsonObj = JSONUtil.toBean(jsonStr,A116SafeSystemParams.class);
//                    BeanUtil.copyProperties(jsonObj,a116Params, CopyOptions.create().setIgnoreError(true).setIgnoreNullValue(true));
//                    a11Params.setA116(a116Params);
//                }
//                aParams.setA1(a1Params);
//                task.setSrrJson(
//                        JSONUtil.toJsonStr(aParams)
//                );
//                return task;
//            }
//            if (rateProcess.startsWith("a2")){
//                // 提取2级参数
//                A2RealityParams a2Params = GenericInitializer.getOrCreate(aParams.getA2(), A2RealityParams.class);
//                if (rateProcess.equals("a21")){
//                    //提取3级参数
//                    A21NonDestructiveParams a21Params = GenericInitializer.getOrCreate(a2Params.getA21(),A21NonDestructiveParams.class);
//                    //转换4级参数
//                    A21NonDestructiveParams jsonObj = JSONUtil.toBean(jsonStr,A21NonDestructiveParams.class);
//                    BeanUtil.copyProperties(jsonObj,a21Params, CopyOptions.create().setIgnoreError(true).setIgnoreNullValue(true));
//                    a2Params.setA21(a21Params);
//                }
//                if (rateProcess.equals("a22")){
//                    //提取3级参数
//                    A22TestParams a22Params = GenericInitializer.getOrCreate(a2Params.getA22(),A22TestParams.class);
//                    //转换4级参数
//                    A22TestParams jsonObj = JSONUtil.toBean(jsonStr,A22TestParams.class);
//                    BeanUtil.copyProperties(jsonObj,a22Params, CopyOptions.create().setIgnoreError(true).setIgnoreNullValue(true));
//                    a2Params.setA22(a22Params);
//                }
//                if (rateProcess.equals("a23")){
//                    //提取3级参数
//                    A23UnionParams a23Params = GenericInitializer.getOrCreate(a2Params.getA23(),A23UnionParams.class);
//                    //转换4级参数
//                    A23UnionParams jsonObj = JSONUtil.toBean(jsonStr,A23UnionParams.class);
//                    BeanUtil.copyProperties(jsonObj,a23Params, CopyOptions.create().setIgnoreError(true).setIgnoreNullValue(true));
//                    a2Params.setA23(a23Params);
//                }
//                aParams.setA2(a2Params);
//                task.setSrrJson(
//                        JSONUtil.toJsonStr(aParams)
//                );
//                return task;
//            }
//            if (rateProcess.startsWith("a3")){
//                // 提取2级参数
//                A3NatureParams a3Params = GenericInitializer.getOrCreate(aParams.getA3(), A3NatureParams.class);
//                if (rateProcess.equals("a31")){
//                    //提取3级参数
//                    A31DrillingParams a31Params = GenericInitializer.getOrCreate(a3Params.getA31(), A31DrillingParams.class);
//                    //转换 3级参数
//                    A31DrillingParams jsonObj = JSONUtil.toBean(jsonStr,A31DrillingParams.class);
//                    BeanUtil.copyProperties(jsonObj,a31Params,CopyOptions.create().setIgnoreError(true).setIgnoreNullValue(true));
//                    a3Params.setA31(a31Params);
//                }
//                if (rateProcess.equals("a32")){
//                    //提取3级参数
//                    A32PreWorkParams a32Params = GenericInitializer.getOrCreate(a3Params.getA32(), A32PreWorkParams.class);
//                    //转换 3级参数
//                    A32PreWorkParams jsonObj = JSONUtil.toBean(jsonStr,A32PreWorkParams.class);
//                    BeanUtil.copyProperties(jsonObj,a32Params,CopyOptions.create().setIgnoreError(true).setIgnoreNullValue(true));
//                    a3Params.setA32(a32Params);
//                }
//                aParams.setA3(a3Params);
//                task.setSrrJson(
//                        JSONUtil.toJsonStr(aParams)
//                );
//                return task;
//            }
//            if (rateProcess.startsWith("a4")){
//                //提取2级参数
//                A4KeyParams a4Params =GenericInitializer.getOrCreate(aParams.getA4(),A4KeyParams.class);
//                if (rateProcess.startsWith("a41")){
//                    //提取3级参数
//                    A41UpdateParams a41Params = GenericInitializer.getOrCreate(a4Params.getA41(),A41UpdateParams.class);
//                    if (rateProcess.equals("a411")){
//                        //提取4级参数
//                        A411WellFrameParams a411Params = GenericInitializer.getOrCreate(a41Params.getA411(),A411WellFrameParams.class);
//                        //转换4级参数
//                        A411WellFrameParams jsonObj = JSONUtil.toBean(jsonStr, A411WellFrameParams.class);
//                        BeanUtil.copyProperties(jsonObj,a411Params,CopyOptions.create().setIgnoreError(true).setIgnoreNullValue(true));
//                        a41Params.setA411(a411Params);
//                    }
//                    if (rateProcess.equals("a412")){
//                        //提取4级参数
//                        A412TravellingParams a412Params = GenericInitializer.getOrCreate(a41Params.getA412(),A412TravellingParams.class);
//                        //转换4级参数
//                        A412TravellingParams jsonObj = JSONUtil.toBean(jsonStr, A412TravellingParams.class);
//                        BeanUtil.copyProperties(jsonObj,a412Params,CopyOptions.create().setIgnoreError(true).setIgnoreNullValue(true));
//                        a41Params.setA412(a412Params);
//                    }
//                    if (rateProcess.equals("a413")){
//                        //提取4级参数
//                        A413DrillingParams a413Params = GenericInitializer.getOrCreate(a41Params.getA413(),A413DrillingParams.class);
//                        //转换4级参数
//                        A413DrillingParams jsonObj = JSONUtil.toBean(jsonStr, A413DrillingParams.class);
//                        BeanUtil.copyProperties(jsonObj,a413Params,CopyOptions.create().setIgnoreError(true).setIgnoreNullValue(true));
//                        a41Params.setA413(a413Params);
//                    }
//                    a4Params.setA41(a41Params);
//                }
//                if (rateProcess.startsWith("a42")){
//                    //提取3级参数
//                    A42RotateParams a42Params = GenericInitializer.getOrCreate(a4Params.getA42(), A42RotateParams.class);
//                    if (rateProcess.equals("a421")){
//                        //提取4级参数
//                        A421TurnParams a421Params = GenericInitializer.getOrCreate(a42Params.getA421(),A421TurnParams.class);
//                        //转换4级参数
//                        A421TurnParams jsonObj = JSONUtil.toBean(jsonStr, A421TurnParams.class);
//                        BeanUtil.copyProperties(jsonObj,a421Params,CopyOptions.create().setIgnoreError(true).setIgnoreNullValue(true));
//                        a42Params.setA421(a421Params);
//                    }
//                    if (rateProcess.equals("a422")){
//                        //提取4级参数
//                        A422TopParams a422Params = GenericInitializer.getOrCreate(a42Params.getA422(),A422TopParams.class);
//                        //转换4级参数
//                        A422TopParams jsonObj = JSONUtil.toBean(jsonStr, A422TopParams.class);
//                        BeanUtil.copyProperties(jsonObj,a422Params,CopyOptions.create().setIgnoreError(true).setIgnoreNullValue(true));
//                        a42Params.setA422(a422Params);
//                    }
//                    a4Params.setA42(a42Params);
//                }
//                if (rateProcess.startsWith("a43")){
//                    //提取3级参数
//                    A43CirculationParams a43Params = GenericInitializer.getOrCreate(a4Params.getA43(),A43CirculationParams.class);
//                    //转换3级参数
//                    A43CirculationParams jsonObj = JSONUtil.toBean(jsonStr, A43CirculationParams.class);
//                    BeanUtil.copyProperties(jsonObj,a43Params,CopyOptions.create().setIgnoreError(true).setIgnoreNullValue(true));
//                    a4Params.setA43(a43Params);
//                }
//                if (rateProcess.startsWith("a44")){
//                    //提取3级参数
//                    A44WellControlParams a44Params = GenericInitializer.getOrCreate(a4Params.getA44(),A44WellControlParams.class);
//                    if (rateProcess.equals("a441")){
//                        //提取4级参数
//                        A441BOPParams a441Params = GenericInitializer.getOrCreate(a44Params.getA441(),A441BOPParams.class);
//                        //转换4级参数
//                        A441BOPParams jsonObj = JSONUtil.toBean(jsonStr, A441BOPParams.class);
//                        BeanUtil.copyProperties(jsonObj,a441Params,CopyOptions.create().setIgnoreError(true).setIgnoreNullValue(true));
//                        a44Params.setA441(a441Params);
//                    }
//                    if (rateProcess.equals("a442")){
//                        //提取4级参数
//                        A442BopParams a442Params = GenericInitializer.getOrCreate(a44Params.getA442(),A442BopParams.class);
//                        //转换4级参数
//                        A442BopParams jsonObj = JSONUtil.toBean(jsonStr, A442BopParams.class);
//                        BeanUtil.copyProperties(jsonObj,a442Params,CopyOptions.create().setIgnoreError(true).setIgnoreNullValue(true));
//                        a44Params.setA442(a442Params);
//                    }
//                    if (rateProcess.equals("a443")){
//                        //提取4级参数
//                        A443WellControlParams a443Params = GenericInitializer.getOrCreate(a44Params.getA443(),A443WellControlParams.class);
//                        //转换4级参数
//                        A443WellControlParams jsonObj = JSONUtil.toBean(jsonStr, A443WellControlParams.class);
//                        BeanUtil.copyProperties(jsonObj,a443Params,CopyOptions.create().setIgnoreError(true).setIgnoreNullValue(true));
//                        a44Params.setA443(a443Params);
//                    }
//                    a4Params.setA44(a44Params);
//                }
//                if (rateProcess.startsWith("45")){
//                    //提取3级参数
//                    A45PowerParams a45Params = GenericInitializer.getOrCreate(a4Params.getA45(),A45PowerParams.class);
//                    if (rateProcess.equals("a451")){
//                        //提取4级参数
//                        A451PowerParams a451Params = GenericInitializer.getOrCreate(a45Params.getA451(),A451PowerParams.class);
//                        //转换4级参数
//                        A451PowerParams jsonObj = JSONUtil.toBean(jsonStr, A451PowerParams.class);
//                        BeanUtil.copyProperties(jsonObj,a451Params,CopyOptions.create().setIgnoreError(true).setIgnoreNullValue(true));
//                        a45Params.setA451(a451Params);
//                    }
//                    if (rateProcess.equals("a452")){
//                        //提取4级参数
//                        A452EmergenceParams a452Params = GenericInitializer.getOrCreate(a45Params.getA452(),A452EmergenceParams.class);
//                        //转换4级参数
//                        A452EmergenceParams jsonObj = JSONUtil.toBean(jsonStr, A452EmergenceParams.class);
//                        BeanUtil.copyProperties(jsonObj,a452Params,CopyOptions.create().setIgnoreError(true).setIgnoreNullValue(true));
//                        a45Params.setA452(a452Params);
//                    }
//                    a4Params.setA45(a45Params);
//                }
//             aParams.setA4(a4Params);
//                task.setSrrJson(
//                        JSONUtil.toJsonStr(aParams)
//                );
//                return task;
//            }
//            if (rateProcess.startsWith("a5")){
//                //提取2参数
//                A5DeviceParams a5Params = GenericInitializer.getOrCreate(aParams.getA5(),A5DeviceParams.class);
//                if (rateProcess.equals("a51")){
//                    //提取3级参数
//                    A51DrillingDeviceParams a51Params = GenericInitializer.getOrCreate(a5Params.getA51(),A51DrillingDeviceParams.class);
//                    //转换3级参数
//                    A51DrillingDeviceParams jsonObj = JSONUtil.toBean(jsonStr, A51DrillingDeviceParams.class);
//                    BeanUtil.copyProperties(jsonObj,a51Params,CopyOptions.create().setIgnoreError(true).setIgnoreNullValue(true));
//                    a5Params.setA51(a51Params);
//                }
//                if (rateProcess.equals("a52")){
//                    //提取3级参数
//                    A52DrillingFluidParams a52Params = GenericInitializer.getOrCreate(a5Params.getA52(),A52DrillingFluidParams.class);
//                    //转换3级参数
//                    A52DrillingFluidParams jsonObj = JSONUtil.toBean(jsonStr, A52DrillingFluidParams.class);
//                    BeanUtil.copyProperties(jsonObj,a52Params,CopyOptions.create().setIgnoreError(true).setIgnoreNullValue(true));
//                    a5Params.setA52(a52Params);
//                }
//                if (rateProcess.equals("a53")){
//                    //提取3级参数
//                    A53WellParams a53Params = GenericInitializer.getOrCreate(a5Params.getA53(),A53WellParams.class);
//                    //转换3级参数
//                    A53WellParams jsonObj = JSONUtil.toBean(jsonStr, A53WellParams.class);
//                    BeanUtil.copyProperties(jsonObj,a53Params,CopyOptions.create().setIgnoreError(true).setIgnoreNullValue(true));
//                    a5Params.setA53(a53Params);
//                }
//                if (rateProcess.equals("a54")){
//                    //提取3级参数
//                    A54PowerParams a54Params = GenericInitializer.getOrCreate(a5Params.getA54(),A54PowerParams.class);
//                    //转换3级参数
//                    A54PowerParams jsonObj = JSONUtil.toBean(jsonStr, A54PowerParams.class);
//                    BeanUtil.copyProperties(jsonObj,a54Params,CopyOptions.create().setIgnoreError(true).setIgnoreNullValue(true));
//                    a5Params.setA54(a54Params);
//                }
//                if (rateProcess.equals("a55")){
//                    //提取3级参数
//                    A55FireParams a55Params = GenericInitializer.getOrCreate(a5Params.getA55(),A55FireParams.class);
//                    //转换3级参数
//                    A55FireParams jsonObj = JSONUtil.toBean(jsonStr, A55FireParams.class);
//                    BeanUtil.copyProperties(jsonObj,a55Params,CopyOptions.create().setIgnoreError(true).setIgnoreNullValue(true));
//                    a5Params.setA55(a55Params);
//                }
//                if (rateProcess.equals("a56")){
//                    //提取3级参数
//                    A56DrillingDataParams a56Params = GenericInitializer.getOrCreate(a5Params.getA56(),A56DrillingDataParams.class);
//                    //转换3级参数
//                    A56DrillingDataParams jsonObj = JSONUtil.toBean(jsonStr, A56DrillingDataParams.class);
//                    BeanUtil.copyProperties(jsonObj,a56Params,CopyOptions.create().setIgnoreError(true).setIgnoreNullValue(true));
//                    a5Params.setA56(a56Params);
//                }
//                aParams.setA5(a5Params);
//                task.setSrrJson(
//                        JSONUtil.toJsonStr(aParams)
//                );
//                return task;
//            }
//        }
//
//
//
//
//
//        return task;
//    }
//}
